package hhs.poc.activities.whoiswho;

import android.database.Cursor;

public class Appointment implements Settable {
	private int id;
	private int emp_id;
	private String date;
	private String begin;
	private String end;
	private String lesson;
	private String group;
	private String room;

	public Appointment() {

	}

	public Appointment(int id, int emp_id, String date, String begin,
			String end, String lesson, String group, String room) {
		this.id = id;
		this.emp_id = emp_id;
		this.date = date;
		this.begin = begin;
		this.end = end;
		this.lesson = lesson;
		this.group = group;
		this.room = room;
	}

	public String getLesson() {
		return lesson;
	}

	public void setLesson(String lesson) {
		this.lesson = lesson;
	}

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

	public String getRoom() {
		return room;
	}

	public void setRoom(String room) {
		this.room = room;
	}

	public int getEmp_id() {
		return emp_id;
	}

	public void setEmp_id(int emp_id) {
		this.emp_id = emp_id;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getBegin() {
		return begin;
	}

	public void setBegin(String begin) {
		this.begin = begin;
	}

	public String getEnd() {
		return end;
	}

	public void setEnd(String end) {
		this.end = end;
	}

	public void setAll(Cursor cursor) {
		setId(cursor.getInt(0));
		setEmp_id(cursor.getInt(1));
		setDate(cursor.getString(2));
		setLesson(cursor.getString(3));
		setBegin(cursor.getString(4));
		setEnd(cursor.getString(5));
		setGroup(cursor.getString(6));
		setRoom(cursor.getString(7));
	}

}
